<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>这是测试页面</h1>
<div>
    <a th:href="@{/passage(start=0)}">首页</a>
    <a th:if="${not page.isFirst()}" th:href="@{/passage(start=${page.number-1})}">[上页]</a>
    <a th:if="${not page.isFirst()}" th:href="@{/passage(start=${page.number+1})}">[下页]</a>
    <a th:href="@{/passage(start=${page.totalPages-1})}">[末页]</a>
</div>

</body>
</html>